package com.ruoyi.system.service.city.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.system.domain.city.CityTrade;
import com.ruoyi.system.mapper.city.CityTradeMapper;
import com.ruoyi.system.service.city.ICityTradeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
/* loaded from: CityTradeServiceImpl.class */ public class CityTradeServiceImpl extends ServiceImpl<CityTradeMapper, CityTrade> implements ICityTradeService {
    @Autowired
    private CityTradeMapper cityTradeMapper;

    @Override // com.ruoyi.system.service.city.ICityTradeService
    public CityTrade selectCityTradeByTradeId(Long tradeId) {
        return this.cityTradeMapper.selectCityTradeByTradeId(tradeId);
    }

    @Override // com.ruoyi.system.service.city.ICityTradeService
    public List<CityTrade> selectCityTradeList(CityTrade cityTrade) {
        return this.cityTradeMapper.selectCityTradeList(cityTrade);
    }

    @Override // com.ruoyi.system.service.city.ICityTradeService
    public int insertCityTrade(CityTrade cityTrade) {
        cityTrade.setCreateTime(DateUtils.getNowDate());
        return this.cityTradeMapper.insertCityTrade(cityTrade);
    }

    @Override // com.ruoyi.system.service.city.ICityTradeService
    public int updateCityTrade(CityTrade cityTrade) {
        return this.cityTradeMapper.updateCityTrade(cityTrade);
    }

    @Override // com.ruoyi.system.service.city.ICityTradeService
    public int deleteCityTradeByTradeIds(Long[] tradeIds) {
        return this.cityTradeMapper.deleteCityTradeByTradeIds(tradeIds);
    }

    @Override // com.ruoyi.system.service.city.ICityTradeService
    public int deleteCityTradeByTradeId(Long tradeId) {
        return this.cityTradeMapper.deleteCityTradeByTradeId(tradeId);
    }
}
